<?php

namespace App\Http\Controllers\admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class CommentController extends Controller
{
    public function index()
    {
        //通过动态属性获取该评论所属文章
        $post = \App\Comment::find(1)->post;
        dd($post);
    }
}
